if (window.plus) {
	ready();
} else {
	document.addEventListener('plusready', ready, false);
}

$(function() {
	if (AGENT_CLIENT.WEB) {
		ready();
	}
})

function ready() {
	var signPage = function() {
		this.init();
	};

	signPage.prototype = {
		init: function() {
			this.bindEvent();
		},
		bindEvent: function() {
			$("#back").on("click", function() {
				back();
			});
			$("#sop").on("click", function() {
				if (AGENT_CLIENT.APP) {
					$.alert("您将用浏览器打开这个页面", function() {
						plus.runtime.openURL("http://sop.soolife.cn/");
					});					
				} else {
					window.location.href = "http://sop.soolife.cn/";
				}
			});

			//绑定现金账号
			$("#bindCard").on("click", function() {
				redirect("../finance/bindCreditcard.html");
			});
		}
	};
	var page = new signPage();
}